﻿
using System;
using System.Net;
using System.Net.Quic;
using System.Threading.Tasks;

namespace test2;

public class Class1
{
    public Class1()
    {
        this.M<MyStruct>();
    }

    public void M<T>() where T : unmanaged
    {
        
    }
}


public struct MyStruct
{
    public int num;
    //public ref string str;
}




class Program
{
    static async Task ssssss(string[] args)
    {
        
        // if (!QuicConnection.IsSupported)
        // {
        //     Console.WriteLine("QUIC is not supported on this platform.");
        //     return;
        // }
        //
        // var listenerOptions = new QuicListenerOptions
        // {
        //     ListenEndPoint = new IPEndPoint(IPAddress.Any, 8000)
        // };
        //
        // using var listener = await QuicListener.ListenAsync(listenerOptions);
        // Console.WriteLine("Listening for connections...");
        //
        // while (true)
        // {
        //     using var connection = await listener.AcceptConnectionAsync();
        //     Console.WriteLine("Connection accepted.");
        //
        //     connection.ConnectionClosed += (sender, e) =>
        //     {
        //         Console.WriteLine("Connection closed.");
        //     };
        //
        //     // Handle the connection (e.g., read/write data)
        // }
    }
}
